package com.dycx.message.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 验证码(VerificationCode)实体类
 *
 * @author wuzongbin
 * @since 2024-01-12 10:39:26
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("message_verification_code")
public class VerificationCodeDO extends CommonDO implements Serializable {


    /**
     * 验证码自增id
     */
    @TableId(type = IdType.AUTO)
    private Integer verificationCodeId;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 验证码
     */
    private String code;

    /**
     * 验证次数
     */
    private Integer verificationNum;

    /**
     * 过期时间
     */
    private LocalDateTime expiredTime;

    /**
     * 是否已验证
     */
    private Boolean verified;
}
